﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Back-end.Master" AutoEventWireup="true" CodeBehind="QuanLyDeThi.aspx.cs" Inherits="TracNghiemTinHocDaiCuong.QuanLyDeThi" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div>
        <table border="0" cellspacing="2px" cellpadding="4px" width="100%">
    	    <tr>
    		    <td class="fontTimKiem">Tên đề thi</td>
                <td>
                    <asp:TextBox ID="txtNoiDung" runat="Server" CssClass="txt"></asp:TextBox>&nbsp&nbsp
                
                    <asp:Button ID="btnTimKiem" runat="Server" Text="Tìm kiếm" OnClick="btnTimKiem_Click"/>&nbsp&nbsp
                
                    <asp:Button ID="btnXoaTuKhoa" runat="Server" Text="Xóa từ khóa" OnClick="btnXoaTuKhoa_Click"/>
                </td>
    	    </tr>
        </table>
    <div class="khoiQL">
        <asp:Button ID="btnThemDeThi" runat="Server" Text="Thêm đề thi mới"
                    OnClick="btnThemDeThi_Click"/>
        <asp:Button ID="btnSuaDeThi" runat="server"  Text="Sửa" OnClick="btnSuaDeThi_Click"/>
        <asp:Button ID="btnXoaDeThi" runat="server" Text="Xóa" OnClick="btnXoaDeThi_Click"
        OnClientClick="return confirm('Bạn có muốn xóa đề thi này?');"/>
    </div>
    <div class="Loc">
        <asp:HiddenField ID="hdfFilter" runat="Server"/>
        <asp:LinkButton ID="lkbtnAll" runat="Server" 
            CommandName="All" OnCommand="ClickFilter">All</asp:LinkButton>&nbsp|&nbsp
        <asp:LinkButton ID="lkbtn09" runat="Server" 
            CommandName="09" OnCommand="ClickFilter">0 - 9</asp:LinkButton>&nbsp|&nbsp
        <asp:LinkButton ID="lkbtnAE" runat="Server" 
            CommandName="AE" OnCommand="ClickFilter">A B C D E</asp:LinkButton>&nbsp|&nbsp
        <asp:LinkButton ID="lkbtnFJ" runat="Server" 
            CommandName="FJ" OnCommand="ClickFilter">F G H J J</asp:LinkButton>&nbsp|&nbsp
        <asp:LinkButton ID="lkbtnKN" runat="Server" 
            CommandName="KN" OnCommand="ClickFilter">K L M N</asp:LinkButton>&nbsp|&nbsp
        <asp:LinkButton ID="lkbtnOR" runat="Server" 
            CommandName="OR" OnCommand="ClickFilter">O P Q R</asp:LinkButton>&nbsp|&nbsp
        <asp:LinkButton ID="lkbtnSV" runat="Server" 
            CommandName="SV" OnCommand="ClickFilter">S T U V</asp:LinkButton>&nbsp|&nbsp
        <asp:LinkButton ID="lkbtnWZ" runat="Server" 
            CommandName="WZ" OnCommand="ClickFilter">W X Y Z</asp:LinkButton>
    </div>

    <div class="gvChuDe">
        <div class="thongBao">
            <asp:Label ID="lblThongBao" runat="Server" CssClass="lblThongBao"></asp:Label>
        </div>
        <div>
            <asp:GridView ID="gvDanhSachDeThi" runat="Server" AllowPaging="True" AllowSorting="True"
        AutoGenerateColumns="False" BackColor="White" BorderColor="#3366CC" Width="100%"
            BorderStyle="None" BorderWidth="1px" CellPadding="4">
            <Columns>
                <asp:BoundField HeaderText="Tên đề thi" DataField="TenDT"/>
                <asp:BoundField HeaderText="Số câu hỏi" DataField="SoCauHoi"/>
                <asp:BoundField HeaderText="Thời gian" DataField="ThoiGian"/>
                <asp:BoundField HeaderText="Độ khó" DataField="DoKho"/>
                <asp:BoundField HeaderText="Ngày tạo" DataField="NgayTao"/>
                <asp:BoundField HeaderText="Đã thi" DataField="DaThi"/>
                <asp:TemplateField HeaderText="Chọn">
                    <ItemTemplate>
                        <asp:LinkButton ID="lkbtnDeThi" runat="server" CommandName='<%# Eval("MaDT") %>'
                        OnCommand="lkbtnDeThi_Click">Chọn</asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
            <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
            <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
            <RowStyle BackColor="White" ForeColor="#003399" />
            <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
            <SortedAscendingCellStyle BackColor="#EDF6F6" />
            <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
            <SortedDescendingCellStyle BackColor="#D6DFDF" />
            <SortedDescendingHeaderStyle BackColor="#002876" />
            </asp:GridView>
        </div>
    </div>
</asp:Content>
